import request from '@/utils/request'


export function edit(data){
  return request({
    url: 'api/warnRuleConf/warnrule',
    method: 'put',
    data
  })
}

export function add(data){
    return request({
      url: 'api/warnRuleConf/warnrule',
      method: 'post',
      data
    })
  }

export function del(data){
  return request({
    url: 'api/warnRuleConf/warnrule',
    method: 'delete',
    data
  })
}

export function getappCodeAndName(){
  return request({
    url: 'api/appDef/qrycodename',
    method: 'get'
  })
}

export function checkAppData(data) {
  return request({
    url: 'api/warnRuleConf/checkAppData',
    method: 'post',
    data
  })
}

export default { edit, del, add, getappCodeAndName, checkAppData}

